// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUi from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import modules from './store/store-modules.js'
import Axios from 'axios'
import VueAxios from 'vue-axios'
import Vuex from 'vuex'
Vue.config.productionTip = false
Vue.use(ElementUi)
Vue.use(VueAxios, Axios)
Vue.use(Vuex)
/* eslint-disable no-new */
Axios.defaults.baseURL = 'http://127.0.0.1:8081'
Axios.defaults.headers['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
Axios.defaults.withCredentials = true /* 开启跨域 */
const store = new Vuex.Store({
  modules
})
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
